package com.book.controller;


import com.book.service.OderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {


    @Autowired
    OderService oderService;

    @RequestMapping("/makeOrder/{abc}")
    public String makeOrder(@PathVariable("abc") String name) {
        return oderService.login(name) + "makeOrder";
    }
}
